package kr.saeildamil.androidstudy_second20;

import kr.saeildamil.androidstudy_second.R;
import kr.saeildamil.androidstudy_second20.common.FragmentArgument;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class Ch20Main extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch20_main);
	}
	public void mOnClick(View v){
		Intent intent=new Intent();
		switch (v.getId()) {
		case R.id.ch20_btn01:
			intent.setClass(this, FragmentLifeCycle.class);
			break;
		case R.id.ch20_btn02:
			intent.setClass(this, FragmentTest.class);
			break;
		case R.id.ch20_btn03:
			intent.setClass(this, ReuseFragment.class);
			break;
		case R.id.ch20_btn04:
			intent.setClass(this, FragmentMgn.class);
			break;
		case R.id.ch20_btn05:
			intent.setClass(this, TwoFragment.class);
			break;
		case R.id.ch20_btn06:
			intent.setClass(this, FragmentManagerTest.class);
			break;
		case R.id.ch20_btn07:
			intent.setClass(this, FragmentArgument.class);
			break;
		case R.id.ch20_btn08:
			intent.setClass(this, ListFragmentTest.class);
			break;
		case R.id.ch20_btn08_1:
			intent.setClass(this, WordLIst.class);
			break;
		case R.id.ch20_btn09:
			intent.setClass(this, MultiPaneWidth.class);
		
			
		}
		startActivity(intent);
	}
}
